<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class Logout extends CI_Controller {

    /**
     * Logging out user; destroy all session data.
     * @return void
     */
    function index()
    {
        $this->session->sess_destroy();
        redirect('login');
    }

}

/* End of file logout.php */
/* Location: ./application/controllers/logout.php */